import ajax from './ajax'

/**
 * 用户信息模块
*/
//修改个人信息
export const reqRegister = (data) => ajax('/api/users/modifly', data, 'POST')
//获取用户信息
export const reqSendCode = (data) => ajax('/api/users', data, 'POST')
//获取用户列表
export const reqSmsLogin = (data) => ajax('/api/users/list', data, 'GET')
//获取消息列表
export const reqPswdLogin = (data) => ajax('/api/msglist', data, 'GET')
// 获取商品列表
export const reqShopList = (data) => ajax('/api/shop/shoplist', data, 'GET')

//获取列表
export const reqList = (url, data) => ajax(url, data, 'GET')


